<?php


namespace app\common\model;

use think\Model;

class SchoolproductModel extends Model
{
    protected $name = 'schoolproduct';

    public function getHomeAttr($value,$data)
    {
        $arr = [
            '0' => '否',
            '1' => '是',
        ];
        return $arr[$data['home']];
    }


}